package edu.govschool2010.shared;

import android.location.Location;

public class Situation {
	
	public String situationName = new String ("");
	public String awayMessageText = new String ("");
	public long startTime;
	public long endTime;
	public Boolean wifi, bluetooth, gps, airplaneMode, awayMessage;
	public int volume, ringerMode;
	String brightness = new String ("");
	Boolean daysOfWeek[] = new Boolean [7];//0=Sunday, 6=Saturday
	public 	Location loc = new Location("");
	String contact = new String ("");

	public Situation (String name){ //random default variables
		situationName = name;
		startTime = -1; //12:00 in afternoon
		endTime = -1; // 12:01 PM
		wifi = null;
		bluetooth = null;
		gps = null;
		airplaneMode = null;
		awayMessage = null;
		volume = -1;
		ringerMode = -1;
		brightness = null;
		for (int x = 0; x<=6; x++){
			daysOfWeek[x] = null;
		}
	}
	
	void makeEqual (Situation a){ //accessible to package only, if you want to use it, write "public" before "void" on this line
		situationName = a.situationName;
		awayMessageText = a.awayMessageText;
		startTime = a.startTime;
		endTime = a.endTime;

		wifi = a.wifi;
		bluetooth = a.bluetooth;
		gps = a.gps;
		airplaneMode = a.airplaneMode;
		awayMessage = a.awayMessage;
		volume = a.volume;
		ringerMode = a.ringerMode;
		brightness = a.brightness;
		daysOfWeek = a.daysOfWeek;
		loc = a.loc;
		contact = a.contact;
	}


}
